package com.heima.wemedia.controller;


import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmUserDto;
import com.heima.wemedia.service.WmUserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
@Api(value = "用户登录",tags = "自媒体用户登录")
public class LoginController {


    @Autowired
    WmUserService wmUserService;

    @PostMapping("in")
    public ResponseResult login(@RequestBody WmUserDto dto) {
        return this.wmUserService.login(dto);
    }
}
